<!DOCTYPE html>
<html lang="en" style="height: 100%">
<head>
    <meta charset="UTF-8">
    <title>首页</title>
    <script src="https://cdn.jsdelivr.net/npm/vue@2.7.10"></script>
    <link rel="stylesheet" href="https://unpkg.com/element-ui/lib/theme-chalk/index.css">
    <script src="https://unpkg.com/element-ui/lib/index.js"></script>
    <script src="https://unpkg.com/axios/dist/axios.min.js"></script>
    <script src="/login/login.js"></script>
</head>
<body style="height: 100%">
<div id="app" style="height: 100%; display: flex; justify-content: space-around; align-items: center">
    <button @click="login">登录</button>
    <ly-login ref="lg"></ly-login>
</div>
<script>
    var v = new Vue({
        el : "#app",
        methods:{
            login(){
                this.$refs.lg.showLogin = true;
            }
        }
    })
</script>
</body>
</html>